import request from '@/util/require'
import {computed} from "vue"
import { usePortStore } from '@/stores/index'
const { getPort, getUserInfo,getDeviceId } = usePortStore()

const baseURL = "https://ts_intelligent.igrsservice.com"


const Env = import.meta.env.VITE_APP_TITLE;

export const listMeeting = () => request({
    baseURL: baseURL,
    method: 'post',
    url: '/meeting/listMeeting',
})


export const delMeetingById = (data) => request({
    baseURL: baseURL,
    method: 'post',
    data:data,
    url: '/meeting/delMeetingById',
})

export const updateRecord = (data) => request({
    baseURL: baseURL,
    method: 'post',
    data:data,
    url: '/meeting/updateRecord',
})



export const getMeetingRecordById = (data) => request({
    data:data,
    baseURL: baseURL,
    method: 'post',
    url: '/meeting/getRecordByMeetingId',
})


export const getMeetingDetailById = (data) => request({
    data:data,
    baseURL: baseURL,
    method: 'post',
    url: '/meeting/getMeetingDetailById',
})

export const listUser = (data) => request({
    headers: {
        'Content-Type': 'application/json'
    },
    baseURL: baseURL,
    method: 'post',
    data,
    url: '/meeting/listUser'
})

export const getUserById = (data) => request({
    baseURL: baseURL,
    method: 'post',
    data,
    url: '/meeting/getUserById'
})

export const updateMeetingNameById = (data) => request({
    baseURL: baseURL,
    method: 'post',
    data,
    url: '/meeting/updateMeetingNameById'
})

export const upload = (data) => request({
    baseURL: baseURL,
    method: 'post',
    data,
    url: '/meeting/upload'
})

export const updateUserById = (data) => request({
    baseURL: baseURL,
    method: 'post',
    data,
    url: '/meeting/updateUserById'
})
